#include <iostream>

#include "DockWidgetWithCloseSignal.h"

DockWidgetWithCloseSignal::DockWidgetWithCloseSignal(const QString &title, QWidget *parent, Qt::WindowFlags flags): QDockWidget( title, parent, flags )
{  
}

DockWidgetWithCloseSignal::DockWidgetWithCloseSignal(QWidget *parent, Qt::WindowFlags flags): QDockWidget( parent, flags )
{
}

void DockWidgetWithCloseSignal::closeEvent(QCloseEvent *event)
{
	emit plotClosed();
	close();
}